jas.hist
Interface ExtendedStatistics

All Superinterfaces:
Statistics
All Known Implementing Classes:
Fittable1DFunction, JASRebinAdaptor

public interface ExtendedStatistics
extends Statistics

An interface that represents a set of Statistics values which are not limited to simple doubles.


Method Summary
 java.lang.Object getExtendedStatistic(java.lang.String name)
          Returns an object corresponding to the named statistic.
 
Methods inherited from interface jas.hist.Statistics
getStatistic, getStatisticNames
 

Method Detail

getExtendedStatistic

public java.lang.Object getExtendedStatistic(java.lang.String name)
Returns an object corresponding to the named statistic. In general the statistic will be displayed by calling its toString method, however if a Format object has been defined for this class (how?) then it will be used instead. By default the following formatters are defined
java.lang.Double
jas.util.ScientificFormat
jas.util.DoubleWithError
jas.util.ScientificFormat
If the method returns null, then the getStatistic() method from the subclass will be called instead. This simplifies the use of simple floating point statistics (no need to create a Double object for each one).
Parameters:
name - The name of the statistic to return
See Also:
ScientificFormat, DoubleWithError